import {post} from "@/axios/index"


const send_code =(data)=> post("/mail/send_code",data)
const upload_img =(data)=> post("/upload/upload_img",data,true)
const proving_code = (data)=>post("/mail/proving_code",data)
const register = (data)=>post("/admin/register",data)
const login = (data)=>post("/admin/login",data)
const like_all_class = (data)=>post("/class/like_all_class",data)
const add_class = (data)=>post("/class/add_class",data)
const add_blog = (data)=>post("/blog/add_blog",data)
const init = ()=>post("/admin/init")
const delete_cookie = ()=>post("/admin/delete_cookie")
const add_message = (data)=>post("/message/add_message",data)
const msg_paging = (data)=>post("/message/paging",data)
const get_msg_count = ()=>post("/message/get_count")
const get_blog_count = ()=>post("/blog/get_count")
const blog_paging = (data)=>post("/blog/paging",data)
const get_blog = (data)=>post("/blog/get_blog",data)
const get_all_class = (data)=>post("/class/get_all_class",data)
const get_num_of_blogs = (data)=>post("/class/get_num_of_blogs",data)
const get_class_related_blog = (data)=>post("/blog/get_class_related_blog",data)
const add_drop_like = (data)=>post("/blog/add_drop_like",data)
const delete_drop_like = (data)=>post("/blog/delete_drop_like",data)


export {
    send_code,
    upload_img,
    proving_code,
    register,
    login,
    like_all_class,
    add_class,
    add_blog,
    init,
    delete_cookie,
    add_message,
    msg_paging,
    get_msg_count,
    get_blog_count,
    blog_paging,
    get_blog,
    get_all_class,
    get_num_of_blogs,
    get_class_related_blog,
    add_drop_like,
    delete_drop_like
}